package com.bdqn.java45;

public class Test1 {
           public static void main(String[] args) {
	        InkBox inkBox=null;
	        Paper paper=null;
	        Printer  printer = new Printer();
	        
	        inkBox=new GrayInkBox();
	        paper=new A4Paper();
	        printer.setPaper(paper);
	        printer.print();
	        
	        inkBox=new ColorInkBox();
	        paper=new B5Paper();
	        printer.setInkBok(inkBox);
	        printer.print();
	        
	        paper=new A4Paper();
	        printer.setPaper(paper);
	        printer.print();
}
}